﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GsifWeb4.Models;
using System.Web.Mvc;

namespace GsifWeb4.ViewModels
{
    public class MatchReportViewModel
    {
        public MatchInfo Match { get; set; }
        public List<MatchStatPerson> MatchStatistics { get; set; }
        public SelectList ManOfMatchPlayers { get; set; }
    }

    public class MatchInfo
    {
        public int Id {get; set;}
        public string Opponent { get; set; }
        public int GoalsFullTimeGSIF { get; set; }
        public int GoalsHalfTimeGSIF { get; set; }
        public int GoalsFullTimeOpponent { get; set; }
        public int GoalsHalfTimeOpponent { get; set; }
        public string WeekDay { get; set; }
        public DateTime Date { get; set; }
        public string Time { get; set; }
        public bool WalkOver { get; set; }
        public string Place { get; set; }
        public string MatchReport { get; set; }
        public SelectList MatchType { get; set; }
        public string Round { get; set; }
        public bool HomeGame { get; set; }
        public string Team { get; set; }
    }

    public class MatchStatPerson
    {
        public string FName { get; set; }
        public string EName { get; set; }
        public string ImagePathSmall { get; set; }
        public int PlayerID { get; set; }
        public int YellowCards { get; set; }
        public int RedCard { get; set; }
        public int Goals { get; set; }
        public int Assists { get; set; }
        public int Position { get; set; }
        public bool ManOftheMatch { get; set; }

        // Används vid lägg till ny och Ändra matchreferat
        public SelectList AllPlayers { get; set; }

    }

}